﻿@{
    ViewBag.Title = "Css管理";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
    int i = 1;
}
@using Utils=UcAsp.Net.Comm.Utils;
<div class="container-fluid">
   <textarea name="content" style="width:100%; min-height:300px;">@Model</textarea> 
    <span class="btn btn-danger save" data-id="@Request["cssname"]" data-theme="@Request["theme"]">保存</span>
</div>
<script>
     $(document).ready(function () {
         $(".save").click(function () {
             $.post("/Admin/SaveCss", { cssname: $(this).attr("data-id"), theme: $(this).attr("data-theme"), content: $("textarea[name='content']").val() }, function (dataResult) {
                 location.reload();
             });
         })
     })
</script>